/**
 * 基地的路由
 * @constructor
 */
const Home = ()=> import("@/pages/base/home/Home");
const BaseOverview = ()=> import("../../pages/base/baseManage/baseOverview/BaseOverview");
const CateringFacilitie = ()=> import("../../pages/base/baseManage/cateringFacilitie/CateringFacilitie");
const ReceptionDetails = ()=> import("../../pages/base/baseManage/receptionDetails/ReceptionDetails");
const StudiesCourse = ()=> import("../../pages/base/baseManage/studiesCourse/StudiesCourse");
const TeachersDetails = ()=> import("../../pages/base/baseManage/teachersDetails/TeachersDetails");
const AccountInfo = ()=> import("../../pages/base/accountManage/accountInfo/AccountInfo");
const ModifyPassword = ()=> import("../../pages/base/accountManage/modifyPassword/ModifyPassWord");
const BaseRegister = () =>import("../../pages/base/baseRegister/base/BaseRegister");
//注册详细
const Wait = () =>import("../../pages/base/baseRegister/wait/Wait");
const Base = () =>import("../../pages/base/baseRegister/Base");
const ReceptionProgram = ()=> import("../../pages/base/receptionProgram/ReceptionProgram");
//课程路由
const StudiesCourseList = () =>import("../../pages/base/baseManage/studiesCourse/list/StudiesCourseList");
const SaveCourse = () => import("../../pages/base/baseManage/studiesCourse/saveCourse/SaveCourse");
const UpdateCourse = () =>import("../../pages/base/baseManage/studiesCourse/updateCourse/UpdateCourse");
//教师路由
const TeacherList = () =>import("../../pages/base/baseManage/teachersDetails/list/TeacherList");
const TeacherRegister = () =>import("../../pages/base/baseManage/teachersDetails/teacherRegister/TeacherRegister");
const UpdateTeacher = () =>import("../../pages/base/baseManage/teachersDetails/updateTeacher/UpdateTeacher");
//基地账号注册
const BaseUserRegister = () =>import("../../pages/base/register/Register")
const baseRoute = [
    {
        path: "/base/home",
        component: Home,
        children: [
            {
                path:"/base/base",
                component:Base,
                children:[
                    {
                        path: "",
                        redirect: "baseRegister"
                    },
                    {
                        path:"baseRegister",
                        component:BaseRegister
                    },
                    {
                        path:"wait",
                        component:Wait
                    }
                ]
            },
            {
                path: "/base/baseOverview",
                component: BaseOverview
            },
            {
                path: "/base/cateringFacilitie",
                component: CateringFacilitie
            },
            {
                path: "/base/receptionDetails",
                component: ReceptionDetails
            },
            {
                path: "/base/studiesCourse",
                component: StudiesCourse,
                children:[
                    {
                        path:"",
                        redirect:"StudiesCourseList",
                    },
                    {
                        path:"StudiesCourseList",
                        component:StudiesCourseList
                    },
                    {
                        path:"SaveCourse",
                        component:SaveCourse
                    },
                    {
                        path:"UpdateCourse",
                        component:UpdateCourse
                    }
                ]
            },
            {
                path: "/base/teachersDetails",
                component: TeachersDetails,
                children:[
                    {
                        path: "",
                        redirect: "TeacherList"
                    },
                    {
                        path: "TeacherList",
                        component:TeacherList
                    },
                    {
                        path: "TeacherRegister",
                        component:TeacherRegister
                    },
                    {
                        path: "UpdateTeacher",
                        component:UpdateTeacher
                    }
                    ]
            },
            {
                path: "/base/accountInfo",
                component: AccountInfo
            },
            {
                path: "/base/modifyPassword",
                component: ModifyPassword
            },
            {
                path: "/base/ReceptionProgram",
                component: ReceptionProgram
            }
        ]
    },
    {
        path: "/base/BaseUserRegister",
        component:BaseUserRegister
    }
];

export default baseRoute;
